package operations;

import book.Book;
import book.BookList;

/**
 * @User: vitobo
 * @Date: 2024-05-27
 * @Description:
 */
public class DisplayOperation implements IOperation{

    public void work(BookList bookList){
        System.out.println("显式所有图书! ");
        int currentSize = bookList.getUsedSize();

        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getPos(i);
            System.out.println(book);
        }
    }
}
